package com.ruoyi.peach.domain;

import java.util.Date;

/**
 *
 * @TableName comment2
 */
public class Comment2 {
    /**
     *
     */
    private Integer comment2Id;

    /**
     *
     */
    private String commentId;

    /**
     *
     */
    private String content;

    /**
     *
     */
    private Integer userId;

    /**
     *
     */
    private String creatTime;

    /**
     *
     */
    public Integer getComment2Id() {
        return comment2Id;
    }

    /**
     *
     */
    public void setComment2Id(Integer comment2Id) {
        this.comment2Id = comment2Id;
    }

    /**
     *
     */
    public String getCommentId() {
        return commentId;
    }

    /**
     *
     */
    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    /**
     *
     */
    public String getContent() {
        return content;
    }

    /**
     *
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     *
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     *
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     *
     */
    public String getCreatTime() {
        return creatTime;
    }

    /**
     *
     */
    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Comment2 other = (Comment2) that;
        return (this.getComment2Id() == null ? other.getComment2Id() == null : this.getComment2Id().equals(other.getComment2Id()))
            && (this.getCommentId() == null ? other.getCommentId() == null : this.getCommentId().equals(other.getCommentId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreatTime() == null ? other.getCreatTime() == null : this.getCreatTime().equals(other.getCreatTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getComment2Id() == null) ? 0 : getComment2Id().hashCode());
        result = prime * result + ((getCommentId() == null) ? 0 : getCommentId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreatTime() == null) ? 0 : getCreatTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", comment2Id=").append(comment2Id);
        sb.append(", commentId=").append(commentId);
        sb.append(", content=").append(content);
        sb.append(", userId=").append(userId);
        sb.append(", creatTime=").append(creatTime);
        sb.append("]");
        return sb.toString();
    }
}